package com.emeraldparser.util;

import com.google.common.base.Objects;

public class HashCodes {

	/**
	 * Generates a hash code using an array of objects that is specific to a particular class.
	 * 
	 * @param hashCodeClass
	 * @param objects
	 * @return
	 */
	public static final int classSpecificHashCode(Class<?> hashCodeClass, Object... objects) {
		return Objects.hashCode(hashCodeClass.getName(), Objects.hashCode(objects));
	}

}
